home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cgraphix
/
csltest.c
< prev
next >
Wrap
Text File
|
1986-05-28
|
571b
|
34 lines
/* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
#include <stdio.h>
#define EXTERN extern
#include <typedef.h>
main()
{
int i;
InitGraphic(); /* init the system and screen */
DefineWorld(1, 0., 0., 1000., 1000.);
SelectWorld(1);
SelectWindow(1);
SetBackground(0x11);
DrawBorder();
for (i = 1; i <= 20; i++)
DrawLine(50.*i, 0., 1000.-50.*i, 50.*i);
SaveScreen("picture.pic");
inkey();
InvertScreen();
inkey();
LoadScreen("picture.pic");
inkey();
LeaveGraphic();
}